package com.feian.service;

import com.cacos.pojo.User;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl {

    public User getUser(Integer id) {

        //  设置暂停5秒
//        try {
//            Thread.sleep(5000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        return new User(id, "小明", 11);
    }
}
